package com.woniu.tms.exam.service;

import java.text.ParseException;
import java.util.List;

import com.woniu.tms.entity.Classes;
import com.woniu.tms.entity.Course;
import com.woniu.tms.entity.Exam;
import com.woniu.tms.entity.Role;
import com.woniu.tms.entity.Room;
import com.woniu.tms.entity.Score;
import com.woniu.tms.entity.User;

public interface ExamService {

	//exam
	List<Exam> findExamByClasses(Classes classes);

	List<Exam> findExamByClassesList(List<Classes> classesList);

	List<Exam> findExamAll();
	
	void addExam(Exam exam);
	
	void deleteByEid(Integer eid);
	
	void updateExam(Exam exam);
	
	Exam findExamByEid(Integer Eid);

	List<Exam> findExamByClassIdList(List<Integer> classIdList);
	
	List<Integer> findEidByDaterange(String daterange1, String daterange2) throws ParseException;
	
	List<Exam> findExamByLikeName(String name);
	
	List<Exam> findExamByLikeNameAndCidListAndDaterange(String name,List<Integer> cidList,String daterange1, String daterange2) throws ParseException;
	
	
	
	//classes	
	Classes findClassByClassId(Integer classid);

	List<Classes> findClassByTeacherId(Integer uid);
	
	List<Classes> findClassAll();
	
	List<Integer> findCidByLikeCname(String cname);
	
	List<Integer> findCidByTeacherId(Integer i);
	
	List<Integer> findCidByClassManagerId(Integer i);
	
	
	//course
	List<Course> findCourseAll();
	
	
	
	//role
	Role findRoleByUser(User loginUser);
	
	
	//room
	List<Room> findRoomAll();
	
	
	//score
	List<Score> findScoreByStudentId(Integer uid);
	

	List<Score> findScoreByExamList(List<Exam> examList);

	List<Score> findScoreAll();
	
	Score findScoreBysid(Integer sid);
	
	void editScore(Score score);
	
	void deleScoreBySid(Integer sid);
	
	void addScore(Score score);
	
	List<Score> findScoreByEidListAndSidList(List<Integer> sidList,List<Integer> eidList);
	
	List<Score> findScoreByStudentIdList(List<Integer> studentIdList);
	
	
	
	
	//user
	List<User> findUserAll();

	List<Integer> findUidByLikeUname(String uname);

	List<Integer> findUidByClassIdList(List<Integer> classIdList);







	
	

	
	

	

}
